import Server

let server = HTTPServer(port: 8080) { request, response in
    print("method: \(request.method)")
    print("URI: \(request.uri)")
    if request.uri == "/file" {
        response.sendFile(200, "OK", "text/plain", "test.txt")
    } else {
        response.sendText(200, "OK", "text/plain", "OK: " + request.uri)
    }
}
server.listen()
